<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

class Activity extends BasicModel
{
	use HasDateTimeFormatter;


    protected $table = 'activity';


    public function apply()
    {
        return $this->hasMany(ActivityApply::class, 'activity_id');
    }

    public function user()
    {
        return $this->belongsTo(User::class, 'uid', 'id');
    }

}
